package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 分理服务卡信息
 * </p>
 *
 * @author LGP
 * @since 2019-09-05
 */
@TableName("bdth_bdcard")
public class Bdcard implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合同编号
     */
    private String ctcode;
    /**
     * 合同名称
     */
    private String ctname;
    /**
     * 用户卡号
     */
    private String cardno;
    /**
     * 指挥机卡号
     */
    private String zhjno;
    /**
     * 服务频度
     */
    private String space;
    /**
     * 收费标准
     */
    private BigDecimal total;
    /**
     * 收费方式
     */
    private String retype;
    /**
     * 起缴日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date crtime;
    /**
     * 到期日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date sptime;

    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCtcode() {
        return ctcode;
    }

    public void setCtcode(String ctcode) {
        this.ctcode = ctcode;
    }

    public String getCtname() {
        return ctname;
    }

    public void setCtname(String ctname) {
        this.ctname = ctname;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getZhjno() {
        return zhjno;
    }

    public void setZhjno(String zhjno) {
        this.zhjno = zhjno;
    }

    public String getSpace() {
        return space;
    }

    public void setSpace(String space) {
        this.space = space;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public String getRetype() {
        return retype;
    }

    public void setRetype(String retype) {
        this.retype = retype;
    }

    public Date getCrtime() {
        return crtime;
    }

    public void setCrtime(Date crtime) {
        this.crtime = crtime;
    }

    public Date getSptime() {
        return sptime;
    }

    public void setSptime(Date sptime) {
        this.sptime = sptime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Bdcard{" +
        ", id=" + id +
        ", ctcode=" + ctcode +
        ", ctname=" + ctname +
        ", cardno=" + cardno +
        ", zhjno=" + zhjno +
        ", space=" + space +
        ", total=" + total +
        ", retype=" + retype +
        ", crtime=" + crtime +
        ", sptime=" + sptime +
        "}";
    }
}
